<?php

class SysRolePrivTable extends Doctrine_Table
{
    public function getRolePriv($role_id) {
        $q = $this->createQuery()
                ->where("is_suspended = ? ", 0)
                ->addWhere("role_id = ? ", $role_id);
        return $q->execute();
    }
}
